<template lang="html">
    <div class="trainingbox">
        <div class="training">
            <p>我的计划</p>
            <img src="http://www.wwtliu.com/sxtstu/msi/winnoe-3.gif"/>
        </div>


        <div class="recording">
            <p>训练记录</p>
            <div>
                <h6>人鱼线雕刻</h6>
                <p>难度</p>
                <span>3分钟</span>
                <h5>37千卡</h5>
            </div>
        </div>
        

        <div class="training Addto">
            <p>添加训练</p>
            <img src="http://www.wwtliu.com/sxtstu/msi/fitness/tuobulianxi.png"/>
        </div>
    </div>
</template>

<script>
export default {
    name:"Training",
    data(){
        return{
            TrainsData:[]
        }
    },
    mounted(){
        this.$axios.get(this.HOST + "http://localhost:3000/burning/trains")
        .then(res => {
            console.log(res.data)
            this.TrainsData = res.data
        })
        .catch(error => {
            console.log(error)
        })
    }
}
</script>

<style lang="less">
.Addto{
    margin-top: 10px;
}
.trainingbox{
    height: 700px;
}
.training{
    width: 100%;
    background: white;
    p{
        text-align: center;
        height: 60px;
        line-height: 60px;
        font-size: 0.4rem
    }
    img{
        width: 90%;
        margin: 0 5% 10px 5%;
    }
}
.recording{
    width: 100%;
    margin-top: 10px;
    background: white;
    padding: 10px 5% 15px 5%;
    box-sizing: border-box;
    p{
        text-align: center;
        font-size: 0.4rem;
    }
    div{
        margin-top: 30px;
        position: relative;
        h6{
            font-size: 0.3rem;
            font-weight: normal;
            width: 50%;
        }
        p{
            text-align: left;
            font-size: 0.3rem;
            margin-top: 10px;
            width: 50%;
        }
        span{
            float: right;
            position: absolute;
            right: 5px;
            bottom:20px;
            font-size: 0.3rem
            
        }
        h5{
            position: absolute;
            left: 40%;
            bottom: 1px;
            font-weight: normal;
            font-size: 0.3rem
        }
    }
}

</style>
